import { http } from "@/utils/http";
import { pageData } from "@/Model/pageDataBase";
import { resultBase, resultNotDataBase } from "@/Model/resultBase";
import { commentVM } from "@/Model/comment";

/**
 * 获取分页数据
 */
export const getPageDataApi = (data?: object) => {
  return http.request<resultBase<pageData<commentVM>>>(
    "post",
    "/api/Comment/GetPageList",
    {
      data
    }
  );
};

/**
 * 禁用数据
 */
export const deleteApi = (data?: object) => {
  return http.request<resultNotDataBase>("post", "/api/Comment/Disable", {
    data
  });
};
/**
 * 启用数据
 */
export const enableApi = (data?: object) => {
  return http.request<resultNotDataBase>("post", "/api/Comment/Enable", {
    data
  });
};
